﻿using System.Net;
using System.Net.NetworkInformation;

namespace NTTDATA.BEENChina.CaseMonitor.NetWork
{
    public class NetWork
    {
        static public bool Ping(string address)
        {
            IPAddress ip = IPAddress.Parse(address);
            Ping p = new Ping();
            PingReply pr = p.Send(ip,  1 * 10000);    //超时毫秒数
            if (pr.Status == IPStatus.Success)
                return true;
            else
                return false;

        }
    }
}
